import React, { createContext, useState } from "react";

const ColorContext = createContext({
    currentColor: '#FFFFFF',
    setCurrentColor:()=>{}
})

const ColorProvider = ({ children }) => {
    const [currentColor, setCurrentColor] = useState('#FFFFFF')
    return (
        <ColorContext.Provider value={{ currentColor, setCurrentColor }}>
        {children}
        </ColorContext.Provider>
    )
}

export {ColorContext,ColorProvider}